import React from 'react';
import Ux from 'ux';
import Ex from 'ex';
import {ExAuthority} from 'ei';
import Op from './Op';

@Ux.zero(Ux.rxEtat(require('./Cab'))
    .cab("UI")
    .to()
)
class Component extends React.PureComponent {
    componentDidMount() {
        Op.yiPage(this);
    }

    render() {
        return Ex.ylCard(this, () => {
            const {$param = {}} = this.state;
            const inherit = Ex.yoAmbient(this);
            inherit.$inited = $param;
            return (
                <ExAuthority {...inherit}/>
            )
        }, Ex.parserOfColor("PxAuthority").page());
    }
}

export default Component